package com.blog.admin.vo;

import com.blog.vo.ConfigVO;
import lombok.Data;

import java.util.Date;

/**
 * 友情链接表
 */
@Data
public class BlogLinkVO {
    public String id;
    public String logo;
    public String webName;
    public String webUrl;
    public String webmasterEmail;
    public String showLocation;
    public Date createTime;
    public Date updateTime;
    //拼接完整的图片路径
    public String headImgUrl;
    public void setWebUrl(String webUrl) {
        this.webUrl = webUrl;
        this.headImgUrl = "http://" + ConfigVO.ip + ":" + ConfigVO.port + "/"+webUrl;
    }


}
